include ( ../../mythconfig.mak )
include ( ../../settings.pro )

TEMPLATE = lib
CONFIG += plugin thread
TARGET = mythiplayer
target.path = $${LIBDIR}/mythtv/plugins
INSTALLS += target

installscripts.path = $${PREFIX}/share/mythtv/mythiplayer/scripts
installscripts.files = scripts/*

INSTALLS += installscripts

# Input

HEADERS += metadata.h qnetpixmap.h xmlparser.h programmefilter.h dbcheck.h
HEADERS += iplayerupdate.h globalsettings.h programmetree.h
HEADERS += programmegallery.h programmeselected.h programmedlg.h
HEADERS += programmelist.h dbaccess.h quicksp.h metadatalistmanager.h
HEADERS += cleanup.h globals.h programmeutils.h imagecache.h
HEADERS += parentalcontrols.h programmeui-common.h

SOURCES += main.cpp metadata.cpp qnetpixmap.cpp xmlparser.cpp iplayerupdate.cpp
SOURCES += programmefilter.cpp dbcheck.cpp cleanup.cpp
SOURCES += globalsettings.cpp programmetree.cpp
SOURCES += programmegallery.cpp programmeselected.cpp programmedlg.cpp
SOURCES += programmelist.cpp dbaccess.cpp metadatalistmanager.cpp
SOURCES += globals.cpp programmeutils.cpp imagecache.cpp
SOURCES += parentalcontrols.cpp programmeui-common.cpp

macx {
    QMAKE_LFLAGS += -flat_namespace -undefined suppress
    # need C99 flag for isnan() to work
    DEFINES += _GLIBCPP_USE_C99
}

mingw:DEFINES += USING_MINGW
